/*
 * @Description: React
 * @version: 1.0
 * @Author: ziwei
 * @Date: 2021-08-15 11:38:37
 * @LastEditors: ziwei
 * @LastEditTime: 2021-08-15 14:41:41
 */
import React,{PropsWithChildren} from 'react'
import {connect} from 'react-redux'
import {RouteComponentProps} from 'react-router-dom'
import HomeHeader from './components/HomeHeader'
import actions from '@/atore/actions/home';
type DispatchProps = typeof actions;

interface Params{}
type Props = RouteComponentProps<Params>

function Home(_props:Props){
    return(
        <>
        <HomeHeader 
        currentCategory={_props.currentCategory} 
        setCurrentCateory={_props.setCurrentCateoty}/>
        </>
    )
}

export default connect()(Home)